//
//  WHRootViewController.h
//  BinFengExpressOwner
//
//  Created by 邓伟浩 on 2018/10/12.
//  Copyright © 2018年 BinFeng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MJRefresh.h>
#import "WHNetworkManager.h"
#import "WHNetRequestModel.h"

typedef NS_ENUM(NSUInteger, NaviType) {
    NaviTypeDefaultBlue,
    NaviTypeClear,
};

@interface WHRootViewController : UIViewController

@property (nonatomic, strong) UITableView *baseTableView;
@property (nonatomic, strong) NSMutableArray *baseDataArray;
@property (nonatomic, strong) NSURLSessionDataTask *baseDataTask;

/** 是否隐藏导航栏 */
@property (nonatomic, assign) BOOL isHidenNaviBar;

/** 导航栏类型 */
@property (nonatomic, assign) NaviType naviType;

- (void)addNavigationItemWithImageNames:(NSArray *)imageNames isLeft:(BOOL)isLeft target:(id)target action:(SEL)action tags:(NSArray *)tags;

/**
 *  默认返回按钮的点击事件，默认是返回，子类可重写
 */
- (void)backBtnClicked;

- (void)headerRereshing;
- (void)footerRereshing;
- (WHNetRequestModel *)requestModel;

- (void)getDataByPageNumber:(int)pageNumber model:(WHNetRequestModel *)model completion:(void (^)(BOOL isSucess, BOOL isLast))completion;

- (void)showNoDataView;
- (void)hideNoDataView;


@end
